db.Execute "insert into 添加数据,嵌套查询的,不成功,说语法错误

来源:百度知道 编辑:UC知道 时间:2024/06/21 23:25:25
db.Execute "insert into 供应商货物表 values ((select 供应商号 from 供应商表 where 供应商名='" & Combo1.Text & "'),(select 货物号 from 商品表 where 货物名='" & List1.List(List1.ListIndex) & "'))"

添加数据,嵌套查询的,不成功,说语法错误
楼下还是不行 语法错误

db.Execute(insert into 供应商货物表 values ((select 供应商号 from 供应商表 where 供应商名='" & Combo1.Text & "'),(select 货物号 from 商品表 where 货物名='" & List1.List(List1.ListIndex) & "')))

不知道行不行
另外,供应商货物表 中只有2个字段?